home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ian & Stuart's Australian Mac: Not for Sale
/
Another.not.for.sale (Australia).iso
/
fade into you
/
getting there
/
Apps
/
MOO-1.7.6.src
/
inc
/
tcp.h
< prev
next >
Wrap
Text File
|
1994-11-02
|
1KB
|
36 lines
#ifndef __TCP_NETWORK__
#define __TCP_NETWORK__
#ifndef __TYPES__
#include <Types.h>
#endif
#define ENTRYPOINT
#ifdef __cplusplus
extern "C" {
#endif
ENTRYPOINT OSErr TCP_StartNetwork(StringPtr networkName, Boolean visible);
ENTRYPOINT OSErr TCP_Listen(short);
ENTRYPOINT OSErr TCP_TestForSession();
ENTRYPOINT void* TCP_AcceptSession();
ENTRYPOINT void TCP_RejectSession();
ENTRYPOINT void TCP_GetConnectionInformation(void * sh, char * dataP);
ENTRYPOINT OSErr TCP_EndSession(void * sh);
ENTRYPOINT void* TCP_StartSessionWith(unsigned long address, short port);
ENTRYPOINT OSErr TCP_WriteToSession(void * sh, char * dataP, long * length, int eof);
ENTRYPOINT OSErr TCP_ReadFromSession(void * sh, char * dataP, long * length);
ENTRYPOINT OSErr TCP_StopNetwork();
ENTRYPOINT OSErr TCP_IPNameToAddr(char *name, unsigned long *addr);
ENTRYPOINT OSErr TCP_IPAddrToName(unsigned long addr, char *name);
ENTRYPOINT OSErr TCP_GetMyIPAddr(unsigned long *addr);
ENTRYPOINT OSErr TCP_GetMyIPAddrStr(char *addrStr);
ENTRYPOINT OSErr TCP_GetMyIPName(char *name);
#ifdef __cplusplus
}
#endif
#endif